package com.xyw.code.platform.webapps.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xyw.code.platform.common.entity.po.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author xyw
 * @since 2020-02-07
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 获得该用户资源
     * @param username
     * @return
     */
    List<SysMenu> userResource(String username);
}
